<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<head>
    <title>Painel</title>
    <jsp:include page="/includes/common_header.html" />
    <meta http-equiv="refresh" content="30; Painel.jsp">
</head>
<body>
<div id="wrapper">
  <jsp:include page="/includes/title.html" />
  <div class="content">
    <jsp:include page="/includes/menu.html" />
    <div class="column-right">
      <div class="box">
        <div class="box-top"></div>
        <div class="box-in">
<!-- <Conteudo> -->
        <div class="outerDiv">
            <table>
                <caption>Chamado Atual: [${"Nome paciente"}]</caption>
                <thead>
                    <tr>
                        <th>Sequencia</th>
                        <th>Nome paciente</th>
                        <th>Agendamento</th>
                        <th>Em espera</th>
                    </tr>
                </thead>
                <tbody>
                <jsp:useBean id="obj" scope="page" class="br.ufpr.tads.suck.model.PainelDao" />
                <jsp:useBean id="data" class="java.util.Date" />
                <c:forEach var="painel" items="${obj.listPainel()}">
                    <tr class="situacao$painel.situacao}">
                        <td>${painel.numero}</td>
                        <td>${painel.nome}</td>
                        <td><fmt:formatDate value="${painel.datahr}" pattern="HH:mm:SS" /></td>
                        <td><fmt:formatDate value="${painel.tempoEspera}" pattern="HH:mm:ss" /></td>
                    </tr>
                </c:forEach>
                </tbody>
                    
            </table>
            </div>
            
<!-- </Conteudo> -->
        </div>
        <div class="box-bottom">
          <hr class="noscreen" />
        </div>
      </div>
    </div>
    <div class="cleaner">&nbsp;</div>
  </div>
</div>
<jsp:include page="/includes/footer.html" />
</body>
</html>
